package cn.ffcs.system.dict.model;

import java.util.List;

import cn.ffcs.base.model.BaseEntity;

/**
 * 字典类型实体类：定义基本属性<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2">liuzhh</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:2009-2-26</td>
 * <td>修改人:刘正慧</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author liuzhh
 * @version $Id$
 */

public class Dict extends BaseEntity
{
    /** 名称 **/
    private String name;
    
    /** 关键字，必需唯一 **/
    private String keyValue;

    /** 所属代码类型 **/
    private DictType dictType;
    //TODO by junyang
    private boolean require=true;
    //排序
    private Integer sorting;
    //备注
    private String note;
    public boolean getRequire()
    {
        return require;
    }

    public void setRequire(boolean require)
    {
        this.require = require;
    }
    //end
    public Dict(){
    }

    public Dict(Integer id){
        this.id=id;
    }
    
    /**
     * 获取类型名称
     * @return
     */
    public String getName()
    {
        return name;
    }

    /**
     * 设置类型名称
     * @param name
     */
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * 获取关键字值
     * @return
     */
    public String getKeyValue()
    {
        return keyValue;
    }

    /**
     * 设置关键字值
     * @param keyValue
     */
    public void setKeyValue(String keyValue)
    {
        this.keyValue = keyValue;
    }
    
    /**
     * 获取字典类型
     * @return
     */
    public DictType getDictType()
    {
        return dictType;
    }
    
    /**
     * 设置字典类型
     * @return
     */
    public void setDictType(DictType dictType)
    {
        this.dictType = dictType;
    }

	public Integer getSorting() {
		return sorting;
	}

	public void setSorting(Integer sorting) {
		this.sorting = sorting;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}
